<script type="text/javascript" src="<!--{$T.js}!-->common.js"></script>
<script type="text/javascript" src="./APP/view/global/editarea/edit_area/edit_area_full.js"></script>
<script language="Javascript" type="text/javascript">
  editAreaLoader.init({
			id: "JS"	// id of the textarea to transform	
			,start_highlight: true
			,allow_toggle: false
			,font_family: "verdana, monospace"
			,language: "zh"
			,syntax: "js"	
			,toolbar: "search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight"
			,syntax_selection_allow: "js"
			,is_multi_files: false
			,EA_load_callback: "editAreaLoaded"
			,show_line_colors: true
		});
</script>

<body>
<style type="text/css">
body {
	background:#FFF;
}
.pageColumn table tr td{text-align:center;}
.pageColumn table tbody tr td{text-align:left; padding-left:10px;}
.add{color:#F00; font-weight:800;}
.add:hover{font-size:14px;}
</style>
<div id="contentWrap">
<div class="pageTitle"></div>
<div class="pageColumn">
 <ul class="pageNav">
     <li><a href="?m=Admin/Style/JsIndex">javascript列表</a></li>
     <li>|</li>
     <li><a href="?m=Admin/Style/AddJs">添加javascript</a></li>
  </ul>
 <br>
<!--{if $T.type=='edit'}!-->
 <form action="?m=Admin/Style/UpdateJs" method="post">
  <table class="TwoSide">
    <tr>
      <td width="10%">js名称</td>
      <td><input type="text" name="name" value="<!--{$T.jsCon.name}!-->"></td>
    </tr>
  </table>
  <textarea id="JS" style="height: 350px; width: 100%; " name="content"><!--{$T.jsCon.content}!--></textarea>
  <input type="hidden" name="jsid" value="<!--{$T.jsCon.jsid}!-->"> 
  <input type="submit" name="sub" value="更新"/>
 </form>
<!--{else}!-->
 <form action="?m=Admin/Style/CreateJs" method="post">
  <table class="TwoSide">
    <tr>
      <td width="10%">js名称</td>
      <td><input type="text" name="name" value=""></td>
    </tr>
  </table>
  <textarea id="JS" style="height: 350px; width: 100%; " name="content"></textarea> 
  <input type="submit" name="sub" value="添加"/>
 </form>

<!--{/if}!-->
</div></div>
</body>
</html>
